import request from '@/utils/request'

// 查询列表
export function fetchList(data) {
    return request({
      url: '/brands/selectbrands.action',
      method: 'post',
      data
    })
}

// 新增
export function createBrand(data) {
    return request({
      url: '/brands/insertSelective.action',
      method: 'post',
      data
    })
}

// 修改
export function updateBrand(data) {
    return request({
      url: '/brands/updateByPrimaryKeySelective.action',
      method: 'post',
      data
    })
}

// 删除
export function deleteBrand(data) {
    return request({
      url: '/brands/deleteByPrimaryKey.action',
      method: 'post',
      data
    })
}
  